﻿using System.Windows.Forms;
using System.IO;
using MPMusicVids.Log;
using MPMusicVids.Data;
using System.Collections.Generic;
using System.Collections;
using MediaPortal.GUI.Library;

namespace MPMusicVids
{
    public partial class MusicVidsMain : ISetupForm
    {
        private Logging log = Logging.getLogger();
        public static DataManager dm = new DataManager("MusicVids.db3");

        public MusicVidsMain()
        {
        }

        public string PluginName()
        {
            return "My Music Videos";
        }

        public string Description()
        {
            return "A music video plugin for MediaPortal";
        }

        public string Author()
        {
            return "Metalla";
        }

        public void ShowPlugin()
        {
            log.Append("Initialising configuration @ " + System.DateTime.Now);
            mainConfig configWindow = new mainConfig();
            configWindow.ShowDialog();
        }

        public bool CanEnable()
        {
            return true;
        }

        public int GetWindowId()
        {
            return 880;
        }

        public bool DefaultEnabled()
        {
            return true;
        }

        public bool HasSetup()
        {
            return true;
        }
        
        public bool GetHome(out string strButtonText, out string strButtonImage,
          out string strButtonImageFocus, out string strPictureImage)
        {
            strButtonText = dm.getPluginName();
            strButtonImage = string.Empty;
            strButtonImageFocus = string.Empty;
            strPictureImage = "hover_MusicVids.png";
            return true;
        }
    }
}